package com.gtq.uhome.result;

/**
 * @description:
 * @author: Zhong Ranjie
 * @create: 2020-08-03 17:22
 **/

public enum BusinessCodeEnum {
    RESOURCE_CREATE_EXCEPTION(4001, "资源新增失败"),
    RESOURCE_NOT_FOUND_EXCEPTION(4002, "资源不存在"),
    RESOURCE_DELETE_EXCEPTION(4003, "资源删除失败"),
    RESOURCE_UPDATE_EXCEPTION(4004, "资源更新失败");

    private Integer code;
    private String description;

    public Integer getCode() {
        return this.code;
    }

    public String getDescription() {
        return this.description;
    }

    private BusinessCodeEnum(Integer code, String description) {
        this.code = code;
        this.description = description;
    }
}
